#include "adminwindow.h"
#include "ui_adminwindow.h"
#include "mainwindow.h"
#include "memwindow.h"
#include "goodswindow.h"

AdminWindow::AdminWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::AdminWindow)
{
    ui->setupUi(this);
    this->setWindowTitle("管理员界面");
}

AdminWindow::~AdminWindow()
{
    delete ui;
}

void AdminWindow::on_returnButton_clicked()
{
    MainWindow* mw = new MainWindow;
    this->close();
    mw->show();
}

void AdminWindow::on_memButton_clicked()
{
    MemWindow *memwin = new MemWindow;
    this->close();
    memwin->show();
}

void AdminWindow::on_goodButton_clicked()
{
    GoodsWindow *gw = new GoodsWindow;
    this->close();
    gw->show();
}
